package innerclassDemo5;

public class Test {
    public static void main(String[] args) {
        Teacher tea = new Teacher();
        tea.look(new Student(){

            @Override
            public void speak() {
                System.out.println("这是匿名内部类的speak方法");
            }
        });
    }
}
